<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>欢迎进入成都佳颖医用制品有限公司</title>
<script src="resources/jquery/jquery.min.js"></script>
<link rel="stylesheet" href="resources/css/common.css">
</head>
<body>
	<span style="text-align: center; display: block;" class="headline">佳颖医用制品有限公司</span>
	<form action="/Erp/Login" method="post" onsubmit="return sumbitTest();"
		id="myform" class="form">
		<div align="center">
			<h1>
				<span class="text">姓名：</span><input type="text" name="username"
					class="text"><br> <span class="text">密码：</span><input
					type="password" name="password" class="text"><br> <input
					type="button" value="登录" id="subbtn" class="btn">
			</h1>
		</div>
	</form>









	<script type="text/javascript">
 	function sumbitTest(){  
        return true; //return false则不会提交   
    }  
 	$('#subbtn').click(function(){
 		var data =$('#myform').serialize();
 		$.ajax({
 			url:"/Erp/Login",
 			data:data,
 			type:'post',
 			async:false,
 			success:function(data){
 				if(data=="0"){
 					location.href="/Erp/index.jsp";
 					}else{
 						alert("请输入正确的用户名或密码")
 					}
 			}
 		})
 	})
 	</script>
</body>
</html>